All Functions of Week 4

colnames

{base}

Retrieve column names of a data frame

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

library

{base}

Load an R package

lm

{base}

Fit a linear model

ggsave

{ggplot2}

Saves the last ggplot or a specified ggplot object to a file

element_blank

{GGPLOT2}

This theme element draws nothing, and assigns no space

read_excel

{readxl}

Read an Excel file

geom_point

{GGPLOT2}

Generates a scatter plot

summary

{base}

Obtain summary statistics or detailed regression output

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

setwd

{base}

Set Working Directory

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

theme_classic

{GGPLOT2}

A minimalistic theme with no gridlines

ggplot

{GGPLOT2}

Create a ggplot graph

element_text

{GGPLOT2}

Customise text in GGPLOT2

labs

{GGPLOT2}

Customise labels in GGPLOT2

theme

{GGPLOT2}

Set theme for GGPLOT2

c

{base}

Combine values/vectors into a vector

The end!